import request from '@/utils/request'

// 查询积分每日任务列表
export function listIntegralDayTask(query) {
  return request({
    url: '/member/integralDayTask/list',
    method: 'get',
    params: query
  })
}

// 查询积分每日任务详细
export function getIntegralDayTask(id) {
  return request({
    url: '/member/integralDayTask/' + id,
    method: 'get'
  })
}

// 新增积分每日任务
export function addIntegralDayTask(data) {
  return request({
    url: '/member/integralDayTask',
    method: 'post',
    data: data
  })
}

// 修改积分每日任务
export function updateIntegralDayTask(data) {
  return request({
    url: '/member/integralDayTask',
    method: 'put',
    data: data
  })
}

// 删除积分每日任务
export function delIntegralDayTask(id) {
  return request({
    url: '/member/integralDayTask/' + id,
    method: 'delete'
  })
}

// 导出积分每日任务
export function exportIntegralDayTask(query) {
  return request({
    url: '/member/integralDayTask/export',
    method: 'get',
    params: query
  })
}